From 3c60ff8e482e0584040dfd3489faafef18e67307 Mon Sep 17 00:00:00 2001 From: Eric Curtin Date: Mon, 8 Jun 2026 21:53:06 +0100 Subject: [PATCH] static-delta: remove unused total_usize variable In _ostree_delta_get_endianness, total_usize was accumulated across delta parts but never read or used in any heuristic or output. Remove the dead variable and its accumulation. --- src/libostree/ostree-repo-static-delta-core.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/libostree/ostree-repo-static-delta-core.c b/src/libostree/ostree-repo-static-delta-core.c index 1a1b3309..f666e8a5 100644 --- a/src/libostree/ostree-repo-static-delta-core.c +++ b/src/libostree/ostree-repo-static-delta-core.c @@ -817,7 +817,6 @@ _ostree_delta_get_endianness (GVariant *superblock, gboolean *out_was_heuristic) *out_was_heuristic = TRUE; guint64 total_size = 0; - guint64 total_usize = 0; guint total_objects = 0; { g_autoptr (GVariant) meta_entries = NULL; @@ -837,8 +836,6 @@ _ostree_delta_get_endianness (GVariant *superblock, gboolean *out_was_heuristic) total_objects += n_objects; total_size += size; - total_usize += usize; - if (size > usize) { double ratio = ((double)size) / ((double)usize); -- 2.39.5